﻿<?php
session_start();
if (!isset($_SESSION['email'])) {
    header("Location:../../index.php");
}
require '../../conexao.php';
?>

<div id="contact">
    <fieldset class="formulario" style="width:300px;margin-top:5%">
        <legend style="font-size:16px;">Cadastro de Disciplinas</legend>
        <form>
            <table>  
                <tr> 
                    <td>
                        <div style='font-weight: bold;'>
                            Sigla
                    </td>
                    <td>
                        <input required type="text" />
                    </td>
                    </div>
                </tr>
                <tr> 
                    <td>
                        <div style='padding-top: 10px; font-weight: bold;'>
                            Disciplina:
                    </td>
                    <td>
                        <input required type="text" /><br />
                    </td>

                    </div>
                </tr>
                <tr> 
                    <td>
                        <div style='padding-top: 10px; font-weight: bold;'>
                            Natureza:
                    </td>
                    <td style='padding-left:30px;'>
                        <select required style="width:200px; height:30px;">
                            <option value="OB">Obrigatória</option>
                            <option value="OP">Optativa</option>
                        </select><br />
                    </td>
                    </div>
                </tr>
                <tr> 
                    <td>
                        <div style='padding-top: 10px; font-weight: bold;'>
                            Semestre:
                    </td>
                    <td style='padding-left:30px;'>
                        <select required style="width:200px; height:30px;">
                            <option value="1">1º</option>
                            <option value="2">2º</option>
                            <option value="3">3º</option>
                            <option value="4">4º</option>
                            <option value="5">5º</option>
                            <option value="6">6º</option>
                            <option value="7">7º</option>
                            <option value="8">8º</option>
                            <option value="NA">N/A</option>
                        </select><br />
                    </td>
                    </div>
                </tr>
                <tr>
                    <td>
                        <div style='padding-top: 10px; font-weight: bold;'>
                            <input type="image" src="img/botao_enviar.png" onclick="alert('Salvando com crud()...')" />
                        </div>
                    </td>  
                </tr>
        </form>
    </fieldset>
</div>
